﻿<style>
    a.nav-link.text-dark {
        border-bottom: 2px solid rgb(255, 255, 255);
        transition: border-bottom 2s;
        -webkit-transition: border-bottom 2s; /* Safari */
    }
    a.nav-link.text-dark:hover {
        border-bottom: 2px solid green;

    }
</style>

<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow">
    <div class="container">
        <a class="navbar-brand" id="mylogo1" asp-area="" asp-controller="Home" asp-action="Index" title="网站首页">
            @*<img src="~/images/logo.png" alt="Alternate Text" class="img-fluid" />*@

        </a>

        <button class="navbar-toggler justify-content-end" type="button" data-toggle="collapse"
                data-target=".navbar-collapse" aria-controls="navbarSupportedContent" aria-expanded="false"
                aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">

            <ul class="navbar-nav flex-grow-1">

                <li class="nav-item">
                    <a class="nav-link text-dark" asp-area="" asp-controller="Home"
                       asp-action="Index"><span class="fa fa-home text-success"></span> 网站首页</a>
                </li>
                <li class="nav-item dropdown">
                    <a class="nav-link text-dark" asp-area="" asp-controller="News"
                       asp-action="Index"><span class="fa fa-newspaper-o text-info"></span> 动态新闻</a>
                </li>

                <li class="nav-item">

                </li>

            </ul>

        </div>

        <form class="col-sm-4 no-padding" role="search" asp-area=""
              asp-controller="News" asp-action="Search" method="get">

            <div class="search-container input-group">
                <input type="search" class="form-control search" placeholder="Search" name="SearchString" id="isearch">
                <div class="input-group-append">
                    <button class="btn btn-outline-success" type="submit"><span class="fa fa-search"></span></button>
                </div>
            </div>

        </form>
        <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse jt_dropdown">
            <partial name="_LoginPartial" />
        </div>
    </div>
</nav>



